package org.chw.config;
/**
 * @Author chen
 * @Date 2018/5/23 19:46
 */

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @ClassName MyConfig
 * @Author chen
 * @Description TODO
 * @Date 2018/5/23 19:46
 * @Version 1.0
 **/
@Configuration
public class MyConfig {
    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}
